
// 居民信息接口
import Vue from 'vue'
import tools from './../utils/tools'
import {AjaxPlugin} from 'vux'


Vue.use(AjaxPlugin)

const SERVER = tools.baseUrl();
export default {
    SERVER,
    getRegionDetil: (data) =>( AjaxPlugin.$http.post(`${SERVER}/region/getDetil`+ '?' + data)), // 获取首页定位
    getPopulationByUniqueIndex: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getPopulationByUniqueIndex`+ '?' + data)), // 获取居民信息查询列表
    deletePopulationInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/deletePopulationInfo`+ '?' + data)), // 删除居民信息查询列表
    getFamilyInfoById: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getFamilyInfoById`+ '?' + data))  , //获取户基本信息
    savePopulationBaseInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/savePopulationBaseInfo`+ '?' + data))  , //保存用户基本信息
    updatePopulationOtherInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/updatePopulationOtherInfo`+ '?' + data))  , //保存用户选填基本信息
    updateDangerPopulationInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/updateDangerPopulationInfo`+ '?' + data))  , //保存特殊人群基本信息
    saveIssueInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/saveIssueInfo`+ '?' + data))  , //保存纠纷纪录信息
    deleteIssueInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/deleteIssueInfo`+ '?' + data))  , //删除纠纷纪录信息
    getIssueInfoList: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getIssueInfoListByPopulationId`+ '?' + data))  , //获取纠纷纪录信息列表
    saveVisitedInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/saveVisitedInfo`+ '?' + data))  , //保存上访纪录信息
    deleteVisitedInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/deleteVisitedInfo`+ '?' + data))  , //删除上访纪录信息
    getVisitedInfoList: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getVisitedInfoListByPopulationId`+ '?' + data))  , //获取保存上访信息列表
    getSubsidyInfoList: (data) =>( AjaxPlugin.$http.post(`${SERVER}/subsidyinfo/getSubsidyInfoListByPopulationId`+ '?' + data))  , //获取补贴纪录信息
    getSubsidyinfoTypes: (data) =>( AjaxPlugin.$http.post(`${SERVER}/subsidyinfo/getSubsidyinfoTypes`+ '?' + data))  , //获取补贴类型
    addSubsidyinfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/subsidyinfo/addSubsidyinfo`+ '?' + data))  , //补贴保存
    editSubsidyinfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/subsidyinfo/editSubsidyinfo`+ '?' + data))  , //补贴编辑
    deleteSubsidyinfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/subsidyinfo/deleteSubsidyinfo`+ '?' + data))  , //补贴删除
    getFamilyLandTransferInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getFamilyLandTransferInfo`+ '?' + data)), //获取户信息的土地和征地情况
    getRefarmingInfoList: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getRefarmingInfoList`+ '?' + data))  , //获取户信息的复垦情况
    getHouseBaseInfoList: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getHouseBaseInfoList`+ '?' + data))  , //获取户信息的房屋信息情况
    getXnsRegionList: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getXnsRegionList`+ '?' + data)), //获取户籍地列表
    updateFamilyBaseInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/updateFamilyBaseInfo`+ '?' + data)), //更新用户基本信息
    addFamilyBaseInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/addFamilyBaseInfo`+ '?' + data)), //添加用户基本信息
    getPopulationInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/getPopulationInfo`+ '?' + data)), //获取用户基本信息
    updateFamilyWaterElectricInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/updateFamilyWaterElectricInfo`+ '?' + data)), //保存水电气通讯信息
    saveLandTransferInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/saveLandTransferInfo`+ '?' + data)), //保存土地信息
    deleteLandTransferInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/deleteLandTransferInfo`+ '?' + data)), //删除土地信息
    saveRefarmingInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/saveRefarmingInfo`+ '?' + data)), //保存复垦信息
    deleteRefarmingInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/deleteRefarmingInfo`+ '?' + data)), //删除复垦信息
    saveHouseBaseInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/saveHouseBaseInfo`+ '?' + data)), //保存房屋信息
    deleteHouseBaseInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/deleteHouseBaseInfo`+ '?' + data)), //删除房屋信息
    updateFamilyGardenInfo: (data) =>( AjaxPlugin.$http.post(`${SERVER}/resident/updateFamilyGardenInfo`+ '?' + data)), //保存产业信息
}
